Often we need to change sampling of a time series data set that we are working with. Imagine that you are working with time series that was sampled in 15 minutes chunks and need to do analysis/ forecast with different sampling e.g. daily , 3 hours, quarterly, yearly etc… There is method resample in pandas that is perfect for resampling time series. You need to make sure that object has a datetime-like index and provide a offset rule (alias).
Below is short example :
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Links: